package test.rmi;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class HelloServiceImpl extends UnicastRemoteObject implements HelloService {

	/**
	 * 
	 */
	private static final long serialVersionUID = 987621462027704960L;

	protected HelloServiceImpl() throws RemoteException {
		super();
	}

	@Override
	public void sayHello() throws RemoteException {
		System.out.println("hello");
	}

	@Override
	public void sayHello(String username) throws RemoteException {
		System.out.println("hello,"+username);
	}

}
